package com.youthHostel.service;


import java.util.List;

import com.github.pagehelper.PageInfo;
import com.youthHostel.pojo.role;

public interface RoleService {
	PageInfo<role> findAll(int index);
	
	List<role> findByName(String name,int index);

	int deleteByPrimaryKey(Integer id);

	int insert(role record);

	role selectByPrimaryKey(Integer id);

	int updateByPrimaryKey(role record);
	
	List<role> selectAll();
}
